package chapter_8.set;

import java.util.HashSet;

public class Test {
    public static void main(String[] args) {
        HashSet<Cat> set = new HashSet<>();
        set.add(new Cat("aa",1));
        set.add(new Cat("aa",1));
        set.add(new Cat("aa",1));
        for (Cat cat : set) {
            System.out.println(cat);
        }

    }
}
